<h1>Listing products</h1>
<p>
<%= link_to 'New Product', new_product_path, :class => 'gray-btn' %>
</p>

<div id="products">
  <table class="datagrid">
    <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Category</th>
      <th>Quantity</th>
      <th>Price</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
    </thead>
    <tbody>
        <% @products.each do |product| %>
            <%= render 'products', :product => product %>
    	<% end %>
    	
    </tbody>
  </table>
</div>

